package com.zaofan.dao;

import java.util.HashMap;
import java.util.Map;

import com.zaofan.bean.Topic;
import com.zaofan.dao.base.DaoSupportImpl;

public class TopicDao extends DaoSupportImpl<Topic> {

	public Topic findById(int id) {
		Map<String, Object> params = new HashMap<>();
		params.put("id", id + "");
		return this.findOne(params);
	}

}
